// let baseUrl = 'http://192.168.1.104:9006/weixintwo/instant/';
let baseUrl = 'https://weixin.eapchina.net/instant/';
export const request = (options = {}) => {
	return new Promise((resolve, reject) => {
		uni.request({
			url: baseUrl + (options.url || ''),
			method: options.method || 'GET',
			data: options.data || {},
			header: {
				'content-type': 'application/x-www-form-urlencoded;charset=utf-8'
			}, // 添加这一行
		}).then(res => {
			resolve(res[1].data);
			
			
		}).catch(error => {})
	})
}